import request from '@/utils/request'
import {appConfig} from '../../config/app'

const service = appConfig.microServModules.mall + 'api/demand/'

// 需求大厅查询列表
export function demandPage (data) {
  return request(`${service}portal/demandPage`, {method: 'post', data})
}

// 需求大厅详情
export function queryDemandDetailForMall (data) {
  return request(`${service}queryDemandDetailForMall`, {method: 'get', data})
}

// 参与需求
export function response (data) {
  return request(`${service}supplier/response`, {method: 'get', data})
}

/**
 * 提供方需求进程
 * */
export function process(data) {
  return request(`${service}supplier/process`, {method: 'get', data})
}
